package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 维修记录（含申请功能）对象 maintenance_record
 * 
 * @author ruoyi
 * @date 2025-07-01
 */
public class MaintenanceRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 维修记录主键ID */
    private Long maintenanceId;

    /** 关联会议室ID */
    @Excel(name = "关联会议室ID")
    private Long roomId;

    /** 会议室名称 */
    @Excel(name = "会议室名称")
    private String roomName;

    /** 申请部长ID */
    @Excel(name = "申请部长ID")
    private Long ministerId;

    /** 维修工ID */
    @Excel(name = "维修工ID")
    private Long workerId;

    /** 问题描述 */
    @Excel(name = "问题描述")
    private String problemDescription;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyTime;

    /** 维修状态 */
    @Excel(name = "维修状态")
    private String status;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date finishTime;

    /** 维修工姓名 */
    @Excel(name = "维修工姓名")
    private String workerName;

    /** 维修工电话 */
    @Excel(name = "维修工电话")
    private String workerPhone;

    public void setMaintenanceId(Long maintenanceId) 
    {
        this.maintenanceId = maintenanceId;
    }

    public Long getMaintenanceId() 
    {
        return maintenanceId;
    }

    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }

    public void setRoomName(String roomName) 
    {
        this.roomName = roomName;
    }

    public String getRoomName() 
    {
        return roomName;
    }

    public void setMinisterId(Long ministerId) 
    {
        this.ministerId = ministerId;
    }

    public Long getMinisterId() 
    {
        return ministerId;
    }

    public void setWorkerId(Long workerId) 
    {
        this.workerId = workerId;
    }

    public Long getWorkerId() 
    {
        return workerId;
    }

    public void setProblemDescription(String problemDescription) 
    {
        this.problemDescription = problemDescription;
    }

    public String getProblemDescription() 
    {
        return problemDescription;
    }

    public void setApplyTime(Date applyTime) 
    {
        this.applyTime = applyTime;
    }

    public Date getApplyTime() 
    {
        return applyTime;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setFinishTime(Date finishTime) 
    {
        this.finishTime = finishTime;
    }

    public Date getFinishTime() 
    {
        return finishTime;
    }

    public void setWorkerName(String workerName) 
    {
        this.workerName = workerName;
    }

    public String getWorkerName() 
    {
        return workerName;
    }

    public void setWorkerPhone(String workerPhone) 
    {
        this.workerPhone = workerPhone;
    }

    public String getWorkerPhone() 
    {
        return workerPhone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("maintenanceId", getMaintenanceId())
            .append("roomId", getRoomId())
            .append("roomName", getRoomName())
            .append("ministerId", getMinisterId())
            .append("workerId", getWorkerId())
            .append("problemDescription", getProblemDescription())
            .append("applyTime", getApplyTime())
            .append("status", getStatus())
            .append("finishTime", getFinishTime())
            .append("workerName", getWorkerName())
            .append("workerPhone", getWorkerPhone())
            .toString();
    }
}
